package com.ouheng.shop.service;

import java.util.List;
import java.util.Map;

import com.ouheng.common.domain.Tree;
import com.ouheng.shop.domain.ProductDO;
import com.ouheng.shop.domain.ProductGroupDO;

/**
 * 商品分组
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-08-20 16:40:56
 */
public interface ProductGroupService {
	
	ProductGroupDO get(Long id);
	
	List<ProductGroupDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProductGroupDO productGroup);
	
	int update(ProductGroupDO productGroup);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	Tree<ProductGroupDO> getTree();
	
	boolean checkGroupHasProduct(Long proId);
	
	Tree<ProductDO> getTree(Long id);
	
	void saveRelevance(ProductGroupDO productGroup);
	
	void saveRelevance(Long pid,Long[] ppids);
}
